{include inc/top.html}
<div class="index-main">
    <h1 class="h-title">{$atitle}
        <span class="sub-nav">
            <a href="{url:'admin@vod-add' , $ctype}">新增影视</a>
        </span>
    </h1>
    <table class="table">
        <tr>
            <th class="th" width="25%">名称</th>
            <th class="th" width="10%">状态</th>
            <th class="th" width="10%">类别</th>
            <th class="th" width="10%">更新</th>
            <th class="th" width="8%">播放</th>
            <th class="th" width="8%">推荐</th>
            <th class="th" >操作</th>
        </tr>
        {foreach $list $k $v}
        <tr class="top_{$v['top']} tr tr-{$list_index % 2 === 0 ? '2' : '1'}">
            <td class="td" >{$v['name']}</td>
            <td class="td">{$vstatus[$v['status']]}</td>
            <td class="td">{$v['catname']}</td>
            <td class="td">{:date('Y-m-d' , $v['udate'])}</td>
            <td class="td">{$v['plays']}</td>
            <td class="td">{$v['rec'] ? '是' : '否'}</td>
            <td class="td" align="left">
                <a href="{url:'admin@vod-add-id-%d' , $v['id']}">修改</a> |
                <a href="{url:'admin@vod-del-id-%d' , $v['id']}" class="delbtn">删除</a>
            </td>
        </tr>
        {/foreach}
    </table>
    {include inc/page.html}
    <div class="clear"></div>
</div>
{include inc/bottom.html}